package com.hjq.fcloud.utils;

import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;

import com.hjq.fcloud.R;
import com.hjq.widget.view.SmartTextView;


public class EmptyViewUtil {

    public static View getEmptyView(Context context, String content) {
        View empty = LayoutInflater.from(context).inflate(R.layout.layout_empty_view, null);
        SmartTextView txtEmpty = empty.findViewById(R.id.iv_status_text);
        if (!TextUtils.isEmpty(content)) {
            txtEmpty.setText(content);
        }
        return empty;
    }

}
